package com.jack.concurrency;

/**
 * Created by zhang_j on 2019/12/3
 */
public class ReSort {
    public static void main(String[] args) {
        Integer i = null;
        boolean inited = false;
        new Thread(new Runnable() {
            @Override
            public void run() {
//                i = 1;
//                inited = true;
            }
        });

        new Thread(()->{
            while(!inited){
                try {
                    Thread.sleep(2*1000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        });
    }
}
